﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MP3Ganizer.Common.Interfaces;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Composite.Regions;
using Microsoft.Practices.Composite.Events;

namespace MP3Ganizer.Common.BaseObject
{
    public abstract class BaseModuleController : IModuleController
    {
        protected IUnityContainer _container;
        protected IRegionManager _regionManager;
        protected IEventAggregator _eventAggregator;
        public BaseModuleController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            _container = container;
            _regionManager = regionManager;
            _eventAggregator = eventAggregator;
            SubscribeCompositeEvent();
        }
        public abstract void Run();
        protected abstract void SubscribeCompositeEvent();
    }
}
